/**
 * LGPL
 * @Author jw12
 */
package uk.ac.sanger.solr;

/**
 * 
 * LPGL
 *@author JWarren
 *
 */
public class CreateSolrIndexes {

	public static void main(String args[]){
		    String homeDir="";
		if(args.length<1){
			System.out.println("You can add a dir to put the index files into as the first argument");
			
		}else{
		homeDir=args[0];
                }
                
                
//                System.setProperty("http.proxySet", "true");
//	System.setProperty("http.proxyHost", "wwwcache.sanger.ac.uk");
//	System.setProperty("http.proxyPort", "3128");
		CreateSolrCoordinatesIndexes coordIndex=new CreateSolrCoordinatesIndexes();
		coordIndex.creatSolrIndexes(homeDir);
		CreateSolrSourcesIndexes sourcesIndex=new CreateSolrSourcesIndexes();
		sourcesIndex.creatSolrIndexes(homeDir);
                //CreateSolrTypesIndexes typesIndex=new CreateSolrTypesIndexes();
                //typesIndex.createSolrIndex(homeDir);
		
	}
}
